package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.List;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 住院消费记录对象 zyconsume
 *
 * @author ruoyi
 * @date 2025-06-30
 */
public class Zyconsume extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 操作时间
     */

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date operateTime;

    /**
     * 订单编号
     */
    @Excel(name = "订单编号")
    private String orderNo;

    /**
     * 患者姓名
     */
    @Excel(name = "患者姓名")
    private String patientName;

    /**
     * 住院号
     */
    private Long zyid;

    /**
     * 来源
     */
    @Excel(name = "来源")
    private String source;

    /**
     * 业务类型
     */
    @Excel(name = "业务类型")
    private String bizType;

    /**
     * 收费项目合计
     */
    @Excel(name = "收费总数")
    private Long feesum;

    /**
     * 支付方式
     */
    @Excel(name = "支付方式")
    private String payType;

    /**
     * 支付金额（元）
     */
    @Excel(name = "支付金额")
    private BigDecimal amount;

    /**
     * 支付状态
     */
    @Excel(name = "支付状态")
    private String payStatus;

    /**
     * 就诊卡号
     */
    @Excel(name = "就诊卡号")
    private Long id;

    @Excel(name = "预约id")
    private int appoimtmentid;

    @Excel(name = "是否完成支付")
    private int ifok;
    /**
     * 卡内余额
     */
    @Excel(name = "卡内余额")
    private BigDecimal balance;
    /**
     * 住院充值记录信息
     */
    private List<Zyrecharge> zyrechargeList;

    public void setOperateTime(Date operateTime) {
        this.operateTime = operateTime;
    }

    public Date getOperateTime() {
        return operateTime;
    }

    public void setBalance(BigDecimal balance) {
        this.balance = balance;
    }

    public BigDecimal getBalance() {
        return balance;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setPatientName(String patientName) {
        this.patientName = patientName;
    }

    public String getPatientName() {
        return patientName;
    }

    public void setZyid(Long zyid) {
        this.zyid = zyid;
    }

    public Long getZyid() {
        return zyid;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getSource() {
        return source;
    }

    public void setBizType(String bizType) {
        this.bizType = bizType;
    }

    public String getBizType() {
        return bizType;
    }

    public void setFeesum(Long feesum) {
        this.feesum = feesum;
    }

    public Long getFeesum() {
        return feesum;
    }

    public void setPayType(String payType) {
        this.payType = payType;
    }

    public String getPayType() {
        return payType;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setPayStatus(String payStatus) {
        this.payStatus = payStatus;
    }

    public String getPayStatus() {
        return payStatus;
    }

    public List<Zyrecharge> getZyrechargeList() {
        return zyrechargeList;
    }

    public void setZyrechargeList(List<Zyrecharge> zyrechargeList) {
        this.zyrechargeList = zyrechargeList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("operateTime", getOperateTime())
                .append("orderNo", getOrderNo())
                .append("patientName", getPatientName())
                .append("id", getId())
                .append("zyid", getZyid())
                .append("source", getSource())
                .append("bizType", getBizType())
                .append("feesum", getFeesum())
                .append("payType", getPayType())
                .append("amount", getAmount())
                .append("payStatus", getPayStatus())
                .append("balance", getBalance())
                .append("zyrechargeList", getZyrechargeList())
                .append("appoimtmentid", getAppoimtmentid())
                .append("ifok", getIfok())
                .toString();
    }

    public int getAppoimtmentid() {
        return appoimtmentid;
    }

    public void setAppoimtmentid(int appoimtmentid) {
        this.appoimtmentid = appoimtmentid;
    }

    public int getIfok() {
        return ifok;
    }

    public void setIfok(int ifok) {
        this.ifok = ifok;
    }
}
